package com.CST.entity.ys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author chengwen
 */
@Getter
@Setter
@TableName("YS_ETL_ASSET_DETAILS")
public class YsEtlAssetDetails implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "NUM")
    @TableField("NUM")
    private Integer num;

    @ApiModelProperty(value = "年")
    @TableField("YEAR")
    private Integer year;

    @ApiModelProperty(value = "月")
    @TableField("MONTH")
    private Integer month;

    @ApiModelProperty(value = "固定资产编码")
    @TableField("ASSET_NUM")
    private String assetNum;

    @ApiModelProperty(value = "固定资产名称")
    @TableField("ASSET_NAME")
    private String assetName;

    @ApiModelProperty(value = "部门编码")
    @TableField("DEPT_CODE")
    private String deptCode;

    @ApiModelProperty(value = "部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "原值")
    @TableField("ORIGINAL_VALUE")
    private Double originalValue;

    @ApiModelProperty(value = "开始使用时间")
    @TableField("USE_START_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate useStartDate;

    @ApiModelProperty(value = "存放地点")
    @TableField("SITE")
    private String site;

    @ApiModelProperty(value = "使用人")
    @TableField("OPERATOR")
    private String operator;

    @ApiModelProperty(value = "院区")
    @TableField("YARD")
    private Integer yard;

    @ApiModelProperty(value = "采集时间")
    @TableField("ETL_TIME")
    private LocalDateTime etlTime;

    @ApiModelProperty(value = "时间")
    @TableField("PERIOD")
    private int period;

    @ApiModelProperty(value = "预算科目编码")
    @TableField("SUBJECT_CODE")
    private String subjectCode;

    @ApiModelProperty(value = "预算科目名称")
    @TableField("SUBJECT_NAME")
    private String subjectName;

    @ApiModelProperty(value = "0:未删除  1:已删除")
    @TableField("DELETE_FLAG")
    private Integer deleteFlag;

    @ApiModelProperty(value = "导入：0 新增or编辑：1")
    @TableField("INSERT_FLAG")
    private Integer insertFlag;

    @ApiModelProperty("创建数据的用户")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty("时间")
    @TableField("CREATE_TIME")
    private Date createTime;
}
